<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/6/4
  Time: 19:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/web_top.jsp" %>
<style>
    #build [class*="span"] {
        float: left;
    }

    .span3 {
        width: 25%;
    }

    .form-horizontal .control-label {
        float: left;
    }

    .leipiplugins {
        border-radius: 3px;
        border: 1px solid #ddd;
        padding: 6px;

    }
</style>
<div class="bgSortScroll">
    <div class="public-bgContent" id="apply-PersonMess">
        <div class="public-PoBefore-title">
            <div class="public-PoBefore-titLeft">
                <span>建档时间：</span>
                <!-- ngIf: editState==1 -->
                <!-- ngIf: editState==2 --><span ng-if="editState==2" id="create_time" class=" "></span>
                <!-- end ngIf: editState==2 -->
            </div>
            <span style="font-size: 18px" id="editOrAdd">编辑借款人信息</span>
            <div class="public-PoBefore-titRight">
                <span>编辑时间：</span>
                <span class="" id="edit_time"></span>
            </div>
        </div>
        <!-- <div class="public-PoBefore-title"  ng-click="sex()">编辑借款人信息</div> -->
        <!--导航 借款信息 借款人信息 资料清单-->
        <ul class="public-PoBefore-nav">
            <li>
	 		<span>
	 			<a ng-click="show('PersonMess',$event,'apply')" href="javascript:void(0)" class="activePublic active">
	 				借款人资料
	 			</a>
	 		</span>
            </li>
        </ul>
        <!--中间可切换内容 public-content样式用作中间切换容器-->
        <!--借款人信息-->
        <div class="public-content" ng-show="apply.PersonMess">
            <div class="public-content-title">
                <!-- <span>选择已存在的客户</span>
                点击出现弹窗
                <span style="cursor: pointer;"
                    ng-click="F.boxTem('loanBefore','being',$event)">
                  <i class="iconfont icon-shaixuan shaixuan"></i>
                </span> -->
                <!-- ngIf: editState==2 -->
                <div class="public-content-title " ng-if="editState==2">
                    <span>客户编号：</span>
                    <span class="public-content-Po " id="personal_num">KSFD201806040855</span>
                </div><!-- end ngIf: editState==2 -->
            </div>
            <table class="public-content-tab" id="public-content-tab">
                <!--个人资料-->
                <thead>
                <tr>
                    <td colspan="7">个人资料</td>
                    <td><span id="addBorrowingName" class="_btn _btn-size" ng-click="addBorrowingName()">添加借款人</span>
                    </td>
                </tr>
                </thead>
                <tbody id="borrowers_content">
                 <!--第一行-->
                <script id="borrowers_content_tpl" type="x-handlebars-template">
                    {{#each content.personalDatas.borrowerDatas}}
                    <tr ng-repeat="(key,item) in data._borrowers track by $index"
                        class="personMess  _borrowers">
                        <td class=""><span>*</span>借款人{{addOne @index}}</td>
                        <td colspan="7" style="text-align: left">
						<span class="pad">
							<input iid="{{id}}" value="{{real_name}}" ng-focus="remFocus()" type="text"
                                   placeholder="请输入借款人1" ng-model="item.realName"
                                   class="realName ng-pristine ng-untouched ng-valid ng-not-empty">
						</span>
                            <span class="pad">
							<input placeholder="输入身份证号码" value="{{id_card}}" ng-focus="remFocus()" type="text" autocomplete="off"
                                   style="width:220px" ng-model="item.idCard" ng-blur="getIdCard(key)"
                                   class="id_card ng-pristine ng-untouched ng-valid ng-not-empty">
						</span>
                            <label class="labelinput pad" ng-class="{'error':_err.borrTis[$index].birthDate}">
                                <input value="{{birth_date}}" ng-focus="remFocus()" placeholder="请选择生日" type="text"
                                       ng-model="item.birthDate" class="birth_date bothDate1 ng-not-empty datepicker">
                                <span>
		 						<i class="iconfont icon-riqi"></i>
		 					</span>
                            </label>
                            <span class="pad">
							<input value="{{cellphone}}" onkeyup="value=value.replace(/[^\d]/g,'')"
                                   ng-class="{'error':_err.borrTis[$index].cellphone}" ng-focus="remFocus()" type="text"
                                   ng-blur="getPhone(key)" placeholder="请输入手机号码" ng-model="item.cellphone"
                                   class="cellphone ng-pristine ng-untouched ng-valid ng-not-empty">
						</span>
                            <span class="pad">
							<label class="sex-radio {{#if_eq sex 1}}is-checked{{/if_eq}}"
                                   ng-class="{'is-checked':item.sex == 1}">
								<input type="radio" name="PersonMessSex_1" value="1" ng-checked="item.sex == 1"
                                       ng-model="item.sex"
                                       class="ng-pristine ng-untouched ng-valid ng-not-empty">男</label>
							<label class="sex-radio {{#if_eq sex 2}}is-checked{{/if_eq}}"
                                   ng-class="{'is-checked':item.sex == 2}">
								<input type="radio" name="PersonMessSex_1" value="2" ng-checked="item.sex == 2"
                                       ng-model="item.sex"
                                       class="ng-pristine ng-untouched ng-valid ng-not-empty">女</label>
						</span>
                            {{#if_eq @index 0}}

                            {{else}}
                            <span class="del " ng-if="key!==0" ng-click="deleteBersonalName(key)">删除</span>

                            {{/if_eq}}
                            <!-- ngIf: key!==0 {{#if_eq sex 1}}checked{{else}}false{{/if_eq}}-->
                        </td>
                    </tr>
                    {{/each}}
                </script>
                <!-- end ngRepeat: (key,item) in data._borrowers track by $index -->
                <!--第二行-->
                <tr>
                    <td>收款人</td>
                    <td>
                        <input id="payee" ng-focus="remFocus()" type="text" placeholder="收款人"
                               ng-model="data.perInfo.payee" class="ng-pristine ng-untouched ng-valid ng-empty">
                    </td>
                    <td>收款账号</td>
                    <td colspan="5" class="backBank">
                        <input id="account" type="text" ng-focus="remFocus()" onkeyup="value=value.replace(/[^\d]/g,'')"
                               ng-class="{'error':err.account}" placeholder="收款帐号" ng-model="data.perInfo.account"
                               class="ng-pristine ng-untouched ng-valid ng-empty">
                        <input id="bank" type="text" ng-focus="remFocus()" ng-class="{'error':err.bank}"
                               placeholder="收款银行" ng-model="data.perInfo.bank"
                               class="ng-pristine ng-untouched ng-valid ng-empty">
                    </td>
                </tr>
                <!--第三行-->
                <tr>
                    <td><span>*</span>户口所在地</td>
                    <td colspan="3" class="autocom">
                        <%--<div class="span" style="margin-top: 5px">
                            <span class="huArea autocomplete"
                                  style="width: 158px !important;margin-right: 10px;"></span>
                            <input id="residence" style="width: 240px !important;float: left;"
                                   ng-class="{'error':err.residence}" ng-focus="remFocus()" type="text"
                                   placeholder="请输入详细地址" ng-model="data.perInfo.residence"
                                   class="ng-pristine ng-untouched ng-valid ng-not-empty">
                        </div>--%>
                            <div class="se-re tdSelect">
                                <select id="province_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">居住区域</option>
                                </select>
                                <script type="text/x-handlebars-template" id="province_list_tpl">
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <div class="se-re tdSelect">
                                <select id="city_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">选择市</option>
                                </select>
                                <script type="text/x-handlebars-template" id="city_list_tpl">
                                    <option value="" selected="selected">选择市</option>
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <div class="se-re tdSelect">
                                <select id="area_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">选择区县</option>
                                </select>
                                <script type="text/x-handlebars-template" id="area_list_tpl">
                                    <option value="" selected="selected">选择区县</option>
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <input id="residence"
                                   style="width: 240px !important;"
                                   ng-class="{'error':err.residence}"
                                   ng-focus="remFocus()"
                                   type="text" autocomplete="off"
                                   placeholder="请输入详细地址"
                                   ng-model="data.perInfo.residence"/>
                    </td>
                    <td><span>*</span>居住地址</td>
                    <td colspan="3" class="autocom">
                        <%--<div class="span" style="margin-top: 5px">
                            <span class="homeArea autocomplete"
                                  style="width: 158px !important;margin-right: 10px;"></span>
                            <input id="address" style="width: 217px !important;float: left;"
                                   ng-class="{'error':err.address}" ng-focus="remFocus()" type="text"
                                   placeholder="请输入详细地址" ng-model="data.perInfo.address"
                                   class="ng-pristine ng-untouched ng-valid ng-not-empty"></div>--%>
                            <div class="se-re tdSelect">
                                <select id="rprovince_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">居住区域</option>
                                </select>
                                <script type="text/x-handlebars-template" id="rprovince_list_tpl">
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <div class="se-re tdSelect">
                                <select id="rcity_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">选择市</option>
                                </select>
                                <script type="text/x-handlebars-template" id="rcity_list_tpl">
                                    <option value="" selected="selected">选择市</option>
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <div class="se-re tdSelect">
                                <select id="rarea_list" ng-options="item.ID as item.name for item in selejia1" ng-model="data.addrProvince " ng-change="selectjia('a')" class="ng-pristine ng-untouched ng-valid ng-empty selectjia_a">
                                    <option value="" selected="selected">选择区县</option>
                                </select>
                                <script type="text/x-handlebars-template" id="rarea_list_tpl">
                                    <option value="" selected="selected">选择区县</option>
                                    {{#each .}}
                                    <option value="{{ID}}">{{name}}</option>
                                    {{/each}}
                                </script>
                                <span class="se-po se-po-inputTem"></span>
                            </div>
                            <input id="address"
                                   style="width: 240px !important;"
                                   ng-class="{'error':err.residence}"
                                   ng-focus="remFocus()"
                                   type="text" autocomplete="off"
                                   placeholder="请输入详细地址"
                                   ng-model="data.perInfo.residence"/>
                    </td>
                </tr>
                <!--第五行-->
                <tr>
                    <td>住宅类型</td>
                    <td colspan="3" class="PersonCol3" id="house">
                        <input type="radio" value="1" ng-checked="data.perInfo.house==1" name="houseType"
                               ng-model="data.perInfo.house" class="ng-pristine ng-untouched ng-valid ng-empty">自建
                        <input type="radio" value="2" ng-checked="data.perInfo.house==2" name="houseType"
                               ng-model="data.perInfo.house" class="ng-pristine ng-untouched ng-valid ng-empty">自购
                        <input type="radio" value="3" ng-checked="data.perInfo.house==3" name="houseType"
                               ng-model="data.perInfo.house" class="ng-pristine ng-untouched ng-valid ng-empty">单位购房
                        <input type="radio" value="4" ng-checked="data.perInfo.house==4" name="houseType"
                               ng-model="data.perInfo.house" class="ng-pristine ng-untouched ng-valid ng-empty">租房
                        (月租
                        <input id="monthRent" type="text" ng-model="data.perInfo.monthRent"
                               class="ng-pristine ng-untouched ng-valid ng-empty">
                        )
                    </td>
                    <td>起始居住时间</td>
                    <td>
                        <label class="bord-sol-DDD">
                            <input id="begin_time"
                                   class="datepicker beginTime ng-pristine ng-untouched ng-valid ng-empty"
                                   placeholder="请选择" type="text" ng-model="data.perInfo.beginTime">
                            <span>
		 						<i class="iconfont icon-riqi"></i>
		 					</span>
                        </label>
                    </td>
                    <td>来本地时间</td>
                    <td>
                        <label class="bord-sol-DDD">
                            <input id="local_time" ng-model="data.perInfo.localTime"
                                   class="datepicker localTime ng-pristine ng-untouched ng-valid ng-empty"
                                   placeholder="请选择" type="text">
                            <span><i class="iconfont icon-riqi"></i></span>
                        </label>
                    </td>
                </tr>
                <!--第六行-->
                <tr>
                    <td>住宅电话</td>
                    <td>
                        <input id="homephone" onkeyup="value=value.replace(/[^\d]|[a-f]/g,'')"
                               ng-class="{'error':err.homephone}" ng-focus="remFocus()" type="text" placeholder="住宅电话"
                               ng-model="data.perInfo.homephone" class="ng-pristine ng-untouched ng-valid ng-empty">
                    </td>
                    <td>教育程度</td>
                    <td class="sanji">
                        <div class="se-re">
                            <select id="education_list" ng-focus="remFocus()" ng-model="data.perInfo.education" class="ng-pristine ng-untouched ng-valid ng-empty">
                                <option value="" selected="selected">请选择</option>
                                <script type="text/x-handlebars-template" id="education_list_tpl">
                                    {{#each .}}
                                    <option value="{{id}}">{{education}}</option>
                                    {{/each}}
                                </script>
                            </select>
                            <!-- <select
                                    ng-focus="remFocus()"
                                    ng-options="item.id as item.name for item in education"
                                    ng-model="data.perInfo.education">
                                <option value=" ">请选择</option>
                            </select> -->
                            <span class="se-po se-po-inputTem"></span>
                        </div>
                    </td>
                    <td>婚姻状况</td>
                    <td class="sanji">
                         <div class="se-re">
                             <select id="marry_list" ng-focus="remFocus()" ng-model="data.perInfo.marry" class="ng-pristine ng-untouched ng-valid ng-empty">
                                 <option value="" selected="selected">请选择</option>
                                 <script type="text/x-handlebars-template" id="marry_list_tpl">
                                     {{#each .}}
                                     <option value="{{id}}">{{marry}}</option>
                                     {{/each}}
                                 </script>
                             </select>
                             <span class="se-po se-po-inputTem"></span>
                         </div>
                     </td>
                    <td>子女数量</td>
                    <td>
                        <input id="child" ng-focus="remFocus()" type="text" placeholder="子女数量"
                               ng-model="data.perInfo.child" class="ng-pristine ng-untouched ng-valid ng-empty">
                    </td>
                </tr>
                </tbody>
                <!--房产信息-->

                <!--车辆信息-->
                <!--公司信息-->
                <!--联系人信息-->
            </table>
            <div id="build">
                <form id="target" class="form-horizontal">
                    <fieldset class="form_myself">

                    </fieldset>
                </form>
            </div>
        </div>
        <!--底部提交评估按钮-->
        <div class="public-bgBotBtn">
            <button id="selCommit" ng-click="sel('1')">保存</button>
        </div>
    </div>
</div>

<link href="static/plugins/FormbuildV1.0/Public/css/bootstrap/css/bootstrap.css" rel="stylesheet"/>
<link rel="stylesheet" href="static/css/formbuild.css"/>
<script type="text/javascript" src="static/js/jquery-plugin/Intelligent_association.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/page/customermanager/customerlist/customerEdit.js?"></script>
<%@ include file="../../common/web_bottom.jsp" %>
